<h1><?=$this->title ?></h1>
<div id="container" style="margin-top: -50px;">
    <?=$this->messages(); ?>
	<table cellspacing="0" class="table" width="99%">
	    <tr class="row_even">
            <td>Caption:</td>
            <td><?=$this->model_type_in_company->getModelType()->getCaption(); ?></td>
	    </tr>
	    <tr class="row_odd">
            <td width="10%">TFTP Filename:</td>
            <td><?=$this->model_type_in_company->getModelType()->getTFTPFilename(); ?></td>
        </tr>
	    <tr class="row_even">
	        <td>Exts:</td>
		    <td><?=$this->model_type_in_company->getModelType()->getExts(); ?></td>
	    </tr>
	    <tr class="row_odd">
	        <td>Firmware:</td>
	        <td><?=($this->model_type_in_company->getModelType()->getModelFirmware()->getID() == -1 ? "No firmware" : $this->model_type_in_company->getModelType()->getModelFirmware()->getCaption()) ?> [Version: <?=($this->model_type_in_company->getModelType()->getModelFirmware()->getID() == -1 ? "no version" : $this->model_type_in_company->getModelType()->getModelFirmware()->getVersion()) ?>]</td>
	    </tr>
	</table>
    <div class="input_field">
        <br><br>Here you can override templates for this type in this company:<br><br>
        General Template:
        <textarea id="ext0_template"><?=$this->model_type_in_company->getTemplate(Principio_Model_Templatable::TEMPLATE_GENERAL); ?></textarea>
        <br>
        <br>
    </div>
    <div class="input_field">
        Common Template:
        <textarea id="ext1_template"><?=$this->model_type_in_company->getTemplate(Principio_Model_Templatable::TEMPLATE_COMMON); ?></textarea>
        <br>
        <br>
    </div>
<?
    for ($i = 0; $i < $this->model_type_in_company->getModelType()->getExts(); $i++)
    {
?>
        <div class="input_field">
            <?=("Ext ".($i + 1)) ?> Template:
            <textarea id="ext<?=($i + Principio_Model_Templatable::TEMPLATE_SHIFT) ?>_template"><?=$this->model_type_in_company->getTemplate($i); ?></textarea>
            <br>
            <br>
        </div>
<?
    };
?>
    <?=$this->buttons(); ?>
</div>